package com.ld.shieldsb.dao.model;

import lombok.Data;

/**
 * 查询条件
 * 
 * @author <a href="mailto:donggongai@126.com" target="_blank">吕凯</a>
 * @date 2020年6月2日 下午6:12:35
 *
 */
@Data
public class Condition {
    private String column; // 列名称
    private Type queryType; // 查询类型
    private Object values; // 值

    public Condition() {
    }

    public Condition(String column, Type queryType, Object values) {
        super();
        this.column = column;
        this.queryType = queryType;
        this.values = values;
    }

    public static enum Type {
        LIKE, EQUAL, LIKE_LEFT, LIKE_RIGHT, NOT_EQUAL, GT, GE, LT, LE, BETWEEN, IN_STR, IN_SET, IS, SQL_STR
    }

}
